package com.ksd.system.domain;

import com.ksd.common.annotation.Excel;
import com.ksd.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 频道模板对象 sys_channel_template
 * 
 * @author y.wu
 * @date 2025-03-23
 */
public class SysChannelTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;
    private Long freq;

    private String boardStr;
    private Long number;
    /** 板卡编号 */
    @Excel(name = "板卡编号")
    private Long boardId;

    /** 输出地址 */
    @Excel(name = "输出地址")
    private String ip;

    /** 端口号 */
    @Excel(name = "端口号")
    private String port;
    private String playUrl;
    private Long push;

    /** 是否推送0默认状态1选中状态 */
    @Excel(name = "是否推送0默认状态1选中状态")
    private String status;

    private String sourceOut;
    private String sourceUrl;
    private String sourcePath;
    private List<String> sourcePaths;
    private String urlType;

    public List<String> getSourcePaths() {
        return sourcePaths;
    }

    public void setSourcePaths(List<String> sourcePaths) {
        this.sourcePaths = sourcePaths;
    }

    public String getSourcePath() {
        return sourcePath;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getSourceOut() {
        return sourceOut;
    }

    public void setSourceOut(String sourceOut) {
        this.sourceOut = sourceOut;
    }

    public String getUrlType() {
        return urlType;
    }

    public void setUrlType(String urlType) {
        this.urlType = urlType;
    }

    /** 自办节目号 */
    @Excel(name = "自办节目号")
    private Long channelId;
    private String sourceId; //频道标识

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    private String channelIdStr;

    public Long getPush() {
        return push;
    }

    public void setPush(Long push) {
        this.push = push;
    }

    public String getChannelIdStr() {
        return channelIdStr;
    }

    public void setChannelIdStr(String channelIdStr) {
        this.channelIdStr = channelIdStr;
    }

    /** 频道logo地址 */
    @Excel(name = "频道logo地址")
    private String logo;

    public String getPlayUrl() {
        return playUrl;
    }

    public String getBoardStr() {
        return boardStr;
    }

    public void setBoardStr(String boardStr) {
        this.boardStr = boardStr;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    public Long getFreq() {
        return freq;
    }

    public void setFreq(Long freq) {
        this.freq = freq;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setBoardId(Long boardId) 
    {
        this.boardId = boardId;
    }

    public Long getBoardId() 
    {
        return boardId;
    }
    public void setIp(String ip) 
    {
        this.ip = ip;
    }

    public String getIp() 
    {
        return ip;
    }
    public void setPort(String port) 
    {
        this.port = port;
    }

    public String getPort() 
    {
        return port;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setChannelId(Long channelId) 
    {
        this.channelId = channelId;
    }

    public Long getChannelId() 
    {
        return channelId;
    }
    public void setLogo(String logo) 
    {
        this.logo = logo;
    }

    public String getLogo() 
    {
        return logo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("boardId", getBoardId())
            .append("ip", getIp())
            .append("port", getPort())
            .append("status", getStatus())
            .append("channelId", getChannelId())
            .append("logo", getLogo())
            .toString();
    }

}
